package com.yeyks.common.appcommon.param.room;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "每日的房源数据信息")
public class CalendarVIPDataParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键Id，更新时必传的参数")
    private Long id;

    /**
     * 房源日期yyyy-MM-dd
     */
    @ApiModelProperty("房源日期yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /**
     * 抢单价
     */
    @ApiModelProperty("销售价")
    @NotNull(message = "销售价不能为空")
    private Integer salePrice;

    /**
     * 公司拿房价
     */
    @ApiModelProperty("公司拿房价")
    @NotNull(message = "公司拿房价")
    private Integer purcPrice;

    /**
     * 每天可订房数
     */
    @ApiModelProperty("每天可订房数")
    @NotNull(message = "请输入可预订数")
    private Integer count;

    /**
     * 默认1，0:下架  1：上架
     */
    @ApiModelProperty("默认1，0:下架  1：上架")
    private Integer status = 1;
}
